@import "style/theme.less";
@import "style/vars.less";

.journeyListWrap {
  padding-right: 10px;

  .journeyList {
    background: #fff;
  }

  .journey-header {
    border-bottom: 1px solid #eaeaea;
    position: relative;
    height: 42px;
    padding: 0px 32px 0px 10px;
    line-height: 42px;
  }

  .journey-title {
    color: @heading-color;
    font-size: 16px;
    font-weight: 600;
  }
  .journey-count {
    margin-left: 4px;
  }

  .journey-extra {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  .add-journey-icon {
    cursor: pointer;
    font-size: 18px;
  }

  .journey-body {
    padding: 16px 12px;
    overflow-y: auto;
    &.empty-journey-body {
      padding-top: 40px;
    }
  }
}


.journey-list-item {
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  margin-bottom: 6px;
  padding: 6px 0px 6px 10px;
  border-radius: 6px;

  &.journey-list-item-active {
    background: @primary-color;
    .journey-name,
    .drop-icon,
    .creator-name,
    .create-time {
      color: #fff;
    }
  }

  .journey-list-item-header {
    position: relative;
    margin-bottom: 4px;
    padding-right: 20px;
  }

  .journey-name {
    color: @heading-color;
    white-space: nowrap;
  }

  .creator-name,
  .create-time {
    font-size: 12px;
    color: @text-color;
  }

  .drop-icon {
    position: absolute;
    right: 8px;
    top: 0px;
    cursor: pointer;
  }

  .journey-list-item-footer {
    position: relative;
    height: 14px;
    line-height: 14px;

    .creator-name {
      position: absolute;
      left: 0px;
      bottom: 0px;
    }

    .create-time {
      position: absolute;
      right: 8px;
      bottom: 0px;
    }
  }
}

.tagRowBody {
  padding-top: 5px;
  .actionTool {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .actionItem {
    cursor: pointer;
    margin-right: 8px;

    &:hover {
      color: @primary-color;
    }
  }

  .actionItem:nth-last-of-type(1) {
    margin-right: 0px;
  }

  .editTagItem {
    display: inline-block;
    vertical-align: top;
    width: 260px;
    margin-right: 8px;
  }
  .add-tag-btn {
    cursor: pointer;
  }
}


.add-tag-btn {
  border-color: @primary-color;
  color: @primary-color;
  cursor: pointer;
}

.tag-ele {
  .tag-color();
  margin-bottom: 6px;
}